import requests

url = 'https://www.baidu.com/'
resp = requests.get(url)
print('响应状态码\t', resp.status_code)  # 打印响应状态码
print('响应头\t\t', resp.headers)
print('响应文本\t', resp.text)
print('响应时间\t', resp.elapsed.total_seconds())
